import request from '@/utils/request'

/* 文件上传 */ 
export function upload(data) {
  return request({
    url: '/sini/admin/storage/upload',
    method: 'post',
    data
  })
}

/* 获取全部类目 */ 
export function getCategoryList() {
  return request({
    url: '/sini/admin/catalog/all',
    method: 'get',
    params: {}
  })
}

/* 获取全部商家 */ 
export function getBrandList() {
  return request({
    url: '/sini/admin/brand/seleceAllBrand',
    method: 'get',
    params: {}
  })
}